#ifndef __DS1302_H__
#define __DS1302_H__

#include "sys.h"

sbit DS1302_SCK = P1^7;
sbit DS1302_SDA = P2^3;
sbit DS1302_RST = P1^3;

void DS1302_write_cmd(uchar temp);
void DS1302_write_byte(uchar addr, uchar dat);
uchar DS1302_read_byte(uchar addr);
void DS1302_setRTC(uchar *DS1302_RTC);
void DS1302_getRTC(uchar *DS1302_RTC);

#endif